package com.book_management.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.book_management.entity.CBook;
import com.book_management.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author xiangqian
 * @date 2022/12/2 17:11
 * @description:
 */
@Mapper
public interface CBookDao extends BaseMapper<CBook> {

    /**
     * @Description 查询要新增信息用户
     * @param sysUser
     */
    @Select("select * from user where name=#{name} or phone =#{phone}")
    SysUser selectAllByPhoneAndName(SysUser sysUser);
}
